package com.ease.framework.gef4p.figures.impl {
   import com.ease.framework.figures.IFigure;
   import com.ease.framework.flex.controls.ImagedLabel;
   import com.ease.framework.gef4p.figures.ILabelFigure;
   import com.ease.framework.gef4p.figures.ILabelFigureBox;

   public class ImageLabelFigure extends ImagedLabel implements ILabelFigure {
      private var _container:ILabelFigureBox;
      private var _isSelected:Boolean;

      private var _editX:Number = 0;
      private var _editY:Number = 0;
      private var _editWidth:Number = 0;
      private var _editHeight:Number = 0;

      public function ImageLabelFigure() {
         super();
      }

      public function findFigureAt(stageX:Number, stageY:Number):IFigure {
         return this;
      }

      public function getContainer():ILabelFigureBox {
         return _container;
      }

      public function setContainer(box:ILabelFigureBox):void {
         _container = box;
      }

      public function get editX():Number {
         return _editX;
      }

      public function set editX(n:Number):void {
         _editX = n;
      }

      public function get editY():Number {
         return _editY
      }

      public function set editY(n:Number):void {
         _editY = n;
      }

      public function get editWidth():Number {
         return _editWidth;
      }

      public function set editWidth(n:Number):void {
         _editWidth = n;
      }

      public function get editHeight():Number {
         return _editHeight;
      }

      public function set editHeight(n:Number):void {
         _editHeight = n;
      }

      public function refreash():void {
         this.toolTip = this.text;
      }

      public function get isSelected():Boolean {
         return _isSelected;
      }

      public function set isSelected(value:Boolean):void {
         _isSelected = value;
      }

   }
}